﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NDF.Security.Cryptography;

namespace NDF.Tests.Framework.Security
{
    [TestClass]
    public class HashAlgorithmsTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            string text = "ChenJianwei";

            Console.WriteLine(HashAlgorithms.CompareMD516(text, HashAlgorithms.MD516(text)));
            Console.WriteLine(HashAlgorithms.CompareMD5(text, HashAlgorithms.MD5(text)));
            Console.WriteLine(HashAlgorithms.CompareRIPEMD160(text, HashAlgorithms.RIPEMD160(text)));
            Console.WriteLine(HashAlgorithms.CompareSHA1(text, HashAlgorithms.SHA1(text)));
            Console.WriteLine(HashAlgorithms.CompareSHA256(text, HashAlgorithms.SHA256(text)));
            Console.WriteLine(HashAlgorithms.CompareSHA384(text, HashAlgorithms.SHA384(text)));
            Console.WriteLine(HashAlgorithms.CompareSHA512(text, HashAlgorithms.SHA512(text)));

        }
    }
}
